package com.example.mapper;

import com.example.entity.Avatar;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface AvatarMapper {

    int insert(Avatar avatar);

    void updateById(Avatar avatar);

    void deleteById(Integer id);

    @Select("select * from `avatar` where id = #{id}")
    Avatar selectById(Integer id);


    List<Avatar> selectAll(Avatar avatar);

}
